function queryForm(pageIndex,pageSize)
{
     var url =base+"/reportMain/pagingInfo.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
     var params =jQuery("#queryForm").serialize();
     params=decodeURIComponent(params,true); 
     jQuery("#reportContent").load(url+"&"+ encodeURI(encodeURI(params)));
}


function gotoPage(pageSize)
{
   var pageIndex =jQuery("#pageIndex").val();
   queryForm(pageIndex,pageSize);
}

jQuery(function()
{
	 var startDateStr =DateUtil.dateToStr('yyyy-MM-dd');
	 jQuery("#startDate").val(startDateStr+" 00:00:00");
	 queryForm(1,15);
}
); 


function querySuperProxy(uid)
{
    var url =base+"/reportMain/pagingInfo.do?pageIndex=1&pageSize=1&uid="+uid;
    var params ="repCode=superProxyCompStatistics&"+jQuery("#startDate").serialize()+"&"+jQuery("#endDate").serialize();
   // params=decodeURIComponent(params,true); 
    jQuery("#reportContent").load(url+"&"+ params);
}


function querySubProxy(uid)
{
    var url =base+"/reportMain/pagingInfo.do?pageIndex=1&pageSize=500&uid="+uid;
    var params ="repCode=subProxyCompStatistics&"+jQuery("#startDate").serialize()+"&"+jQuery("#endDate").serialize();
   // params=decodeURIComponent(params,true); 
    jQuery("#reportContent").load(url+"&"+ params);
}
